home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Pascal Super Library
/
Pascal Super Library (CW International)(1997).bin
/
LIBRARY
/
TP_TOOLS
/
CLOCK2.DOC
< prev
next >
Wrap
Text File
|
1994-05-10
|
2KB
|
114 lines
PROGRAMMING MANUAL
------------------
The following list of routines were written to provide clock support for
programs written in Turbo Pascal (version 5.0). The routines include:
CLOCK_FACE_BUILD
CLOCK_TIME
CLOCK_DATE
The following is a programming example for proper use of the clock routines:
PROGRAM CLOCK_EXAMPLE
USES DOS, CRT, GRAPH, CLOCK2;
BEGIN
CLOCK_FACE_BUILD(10,10,7,15,8,0,1);
CLOCK_DATE(2);
CLOCK_TIME(2);
END;
NOTES: 1) The clock2 unit must be included in the USES line (along with any
other required units).
PROGRAMMING MANUAL
------------------
CLOCK_FACE_BUILD
USE CLOCK_FACE_BUILD(XLoc, YLoc, Edge, Hi, Lo, Back, Num :INTEGER);
FUNCTION Builds a 3D analog style clock for time and date display.
ARGUMENTS XLoc :INTEGER
Specifies the window horizontal start location.
Legal Values: 1 to (max screen size - 100).
YLoc :INTEGER
Specifies the window vertical start location.
Legal Values: 1 to (max screen size - 20).
Edge :INTEGER
Specifies the color of the clock window border.
Legal Values: 0 to 15.
Hi :INTEGER
Specifies the color of the high-lighted window side.
Legal Values: 0 to 15.
Lo :INTEGER
Specifies the color of the shaded window side.
Legal Values: 0 to 15.
Back :INTEGER
Specifies the time-text background color.
Legal Values: 0 to 15.
Num :INTEGER
Specifies the clock tick marks color.
Legal Values: 0 to 15.
COMMENTS The window location and text background value are
automatically passed to the CLOCK_TIME and CLOCK_DATE
procedures.
PROGRAMMING MANUAL
------------------
CLOCK_TIME
USE CLOCK_TIME(Color);
FUNCTION Adjusts the clock hands to display the current TIME.
ARGUMENTS Color :INTEGER
Specifies the TIME-text display color.
Legal Values: 0 to 15.
COMMENTS None.
PROGRAMMING MANUAL
------------------
CLOCK_DATE
USE CLOCK_DATE(Color);
FUNCTION Displays the current DATE.
ARGUMENTS Color :INTEGER
Specifies the DATE-text display color.
Legal Values: 0 to 15.
COMMENTS None.